cc.Class({
    extends: cc.Component,

    properties: {
        label: {
            default: null,
            type: cc.Label
        },
        text: 'Hello, World!'
    },

    // use this for initialization
    onLoad: function () {
        this.label.string = this.text;
        var shapeMode = cc.instantiate(cc.find("ShapeMode"))
        var shapeComp = shapeMode.getComponent("Shape")
        shapeComp.pos1=cc.Vec2(0,0)
        shapeComp.pos2=cc.Vec2(0,1)
        shapeComp.pos3=cc.Vec2(1,0)
        shapeComp.pos4=cc.Vec2(1,1)
        shapeComp.initShapePos()
        this.node.addChild(shapeMode)
    },

    // called every frame
    update: function (dt) {

    },
});
